﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class W_Content:NFinal.Struct
    {
		public System.Int32? ID {get;set;}
		public System.Int32? SortID {get;set;}
		public System.String SortIDs {get;set;}
		public System.String title {get;set;}
		public System.String titleColor {get;set;}
		public System.String author {get;set;}
		public System.String source {get;set;}
		public System.String content {get;set;}
		public System.String indexImage {get;set;}
		public System.String uplodImages {get;set;}
		public System.DateTime? addTime {get;set;}
		public System.DateTime? editTime {get;set;}
		public System.Int32? visits {get;set;}
		public System.String tag {get;set;}
		public System.String pageWordKeys {get;set;}
		public System.String pageDesc {get;set;}
		public System.Int32? isTop {get;set;}
		public System.Int32? isRecommend {get;set;}
		public System.Int32? isImage {get;set;}
		public System.Int32? commentFlag {get;set;}
		public System.Int32? orderNum {get;set;}
		public System.Int32? flag {get;set;}
		public System.Double? price {get;set;}
		public System.String productColor {get;set;}
		public System.String videoPath {get;set;}
		public System.Int32? UserID {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"ID\":");
					tw.Write(ID==null?"null" : ID.ToString());
					tw.Write(",");
					tw.Write("\"SortID\":");
					tw.Write(SortID==null?"null" : SortID.ToString());
					tw.Write(",");
					tw.Write("\"SortIDs\":");
					tw.Write("\"");
					tw.Write(SortIDs==null?"null":SortIDs);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"title\":");
					tw.Write("\"");
					tw.Write(title==null?"null":title);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"titleColor\":");
					tw.Write("\"");
					tw.Write(titleColor==null?"null":titleColor);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"author\":");
					tw.Write("\"");
					tw.Write(author==null?"null":author);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"source\":");
					tw.Write("\"");
					tw.Write(source==null?"null":source);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"content\":");
					tw.Write("\"");
					tw.Write(content==null?"null":content);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"indexImage\":");
					tw.Write("\"");
					tw.Write(indexImage==null?"null":indexImage);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"uplodImages\":");
					tw.Write("\"");
					tw.Write(uplodImages==null?"null":uplodImages);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"addTime\":");
					tw.Write("\"");
					tw.Write(addTime==null?"null":addTime.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"editTime\":");
					tw.Write("\"");
					tw.Write(editTime==null?"null":editTime.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"visits\":");
					tw.Write(visits==null?"null" : visits.ToString());
					tw.Write(",");
					tw.Write("\"tag\":");
					tw.Write("\"");
					tw.Write(tag==null?"null":tag);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"pageWordKeys\":");
					tw.Write("\"");
					tw.Write(pageWordKeys==null?"null":pageWordKeys);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"pageDesc\":");
					tw.Write("\"");
					tw.Write(pageDesc==null?"null":pageDesc);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"isTop\":");
					tw.Write(isTop==null?"null" : isTop.ToString());
					tw.Write(",");
					tw.Write("\"isRecommend\":");
					tw.Write(isRecommend==null?"null" : isRecommend.ToString());
					tw.Write(",");
					tw.Write("\"isImage\":");
					tw.Write(isImage==null?"null" : isImage.ToString());
					tw.Write(",");
					tw.Write("\"commentFlag\":");
					tw.Write(commentFlag==null?"null" : commentFlag.ToString());
					tw.Write(",");
					tw.Write("\"orderNum\":");
					tw.Write(orderNum==null?"null" : orderNum.ToString());
					tw.Write(",");
					tw.Write("\"flag\":");
					tw.Write(flag==null?"null" : flag.ToString());
					tw.Write(",");
					tw.Write("\"price\":");
					tw.Write(price==null?"null" : price.ToString());
					tw.Write(",");
					tw.Write("\"productColor\":");
					tw.Write("\"");
					tw.Write(productColor==null?"null":productColor);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"videoPath\":");
					tw.Write("\"");
					tw.Write(videoPath==null?"null":videoPath);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"UserID\":");
					tw.Write(UserID==null?"null" : UserID.ToString());
			tw.Write("}");
		}
		#endregion
    }
}
